package tq.com.tqstudent.widgets;

import android.content.Context;
import android.support.v7.widget.LinearSmoothScroller;

/**
 * @Author rames
 * @date 2019/5/8 11:23
 */
public class TopSmoothScroller extends LinearSmoothScroller {

    public TopSmoothScroller(Context context) {
        super(context);
    }

    @Override
    protected int getHorizontalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }

    @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }
}
